#include "baseEmployee.h"
BaseComEmployee::BaseComEmployee(const string& nume,const string& prenume,const string& ssn,double gross, double rate,double salary):ComEmployee(nume,prenume,ssn,gross,rate){
setBaseSalary(salary);
}

double BaseComEmployee::getBaseSalary()const{return (*this).baseSalary;}

void BaseComEmployee::setBaseSalary(double salar){
	(*this).baseSalary=((salar<0.0)?0.0:salar);
}

double BaseComEmployee::earnings()const{
	return getBaseSalary()+ComEmployee::earnings();
}
void BaseComEmployee::print()const{
	std::cout<<"Base Salaried\n";
	ComEmployee::print();
	std::cout<<" base salary= "<<getBaseSalary();
}
